Client Side Template

{*@functionName}...{/*}

Description

The arbitrary iterator allows you to iterate over dynamically created data.

{*@functionName}
...
{/*}

The iterator is useful for inserting external data into the template when it is expanded.

{orders}
{id} {total} {date}<br />
{*if !delivered}
{*@tracking}
{location} at {date}
{/*}
{*endif}
{/orders}

Where tracking is a Javascript function that might be defined as follows:

function tracking(data,temp,root,parent,path){
    /*
    data is the current parent data context - in this case the current order
    assume code here that goes to a separately stored tracking array and
    returns an array of locations and dates
    */

    return [
        {location: 'Boston MA', date: '9/4/2016'},
        {location: 'Albany NY', date: '9/5/2016'}
    ];
}